/*
 * ttycoincoin.c
 *
 *  Created on: 19 févr. 2013
 *      Author: pierre
 */
/*	ttycoincoin a client for linuxfr addicts
    Copyright (C) 2013  jourdain pierre <pierre80@voila.fr>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.*/
#include <stdlib.h>
#include <stdio.h>
#include "network.h"
#include <stdbool.h>
#include "main_window.h"
#include "ttycoincoin.h"
#include "timer.h"
#include "menu.h"

int main()
{
	int choice=license();
	switch(choice)
	case 1:
		printf("Licence accepté\n");
		//Menu principal
		switch_menu(menu());
		break;
	case 2:
		printf("Le programme va quitter\n");
		exit(1);/*Quitte*/
		break;
	case 4:
		printf("Plus d'infos sur : https://www.gnu.org/licenses/quick-guide-gplv3.fr.html");
		break;
	default:
		printf("Veuillez séléctionner 1 ,2,4\n");
		choice=licence();
		break;


	return 0;
}
